package com.eboss.sbs.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.eboss.sbs.R;
import com.eboss.sbs.activity.base.BaseActivity;
import com.nostra13.universalimageloader.core.ImageLoader;

public class ReceiptBarcodeActivity extends BaseActivity {

	private String barcode;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		mActivity = this;
		setContentView(R.layout.activity_receipt_barcode);
		super.onCreate(savedInstanceState);
		barcode = getIntent().getStringExtra("barcode");
		
		initView();
	}
	
	private void initView(){
		setTvText(R.id.tv_title, "收款二维码");
		findViewById(R.id.titleback_btn_back).setOnClickListener(this);
		ImageView img_barcode = (ImageView)findViewById(R.id.img_barcode);
		ImageLoader.getInstance().displayImage(barcode, img_barcode);
	}
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.titleback_btn_back:
				finish();
				break;
	
			default:break;
		}
		super.onClick(v);
	}
	
}
